package com.yssw.config;


import lombok.*;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author KnockingFarmers
 * @Date 2023/4/1 17:09
 * @PackageName:com.yssw.config
 * @ClassName: WeChatPaymentConfig
 * @Description: TODO
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode
@ToString
@Configuration
@ConfigurationProperties(prefix = "wechat-payment")
public class WeChatPaymentConfig {

    /**
     * 商户号
     */
    @Value("${wechat-payment.merchantId}")
    private  String merchantId;
    /**
     * 商户API私钥路径
     */
    @Value("${wechat-payment.privateKeyPath}")
    private  String privateKeyPath;
    /**
     * 商户证书序列号
     */
    @Value("${wechat-payment.merchantSerialNumber}")
    private  String merchantSerialNumber;
    /**
     * 商户APIV3密钥
     */
    @Value("${wechat-payment.apiV3key}")
    private  String apiV3key;

    @Value("${wechat-payment.notifyUrl}")
    private String notifyUrl;

    @Value("${wechat-payment.appId}")
    private   String appId;

    @Value("${wechat-payment.mchId}")
    private   String mchId;
    @Value("${wechat-payment.mchId}")
    private String mchKey;
    @Value("${wechat-payment.keyPath}")
    private String keyPath;
    @Value("${wechat-payment.privateCertPath}")
    private String privateCertPath;


}
